#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

struct stu 
{
	int age; 
	char name[20]; 
	char sex[10];
	char tele[12];
};

void print (struct stu* ps)
{
	printf("%d %s %s %s\n", (*ps).age, (*ps).name, (*ps).sex, (*ps).tele);
	printf("%d %s %s %s\n", ps->age, ps->name, ps->sex, ps->tele);
}

int main()
{
	struct stu s = { 22,"zhangsan","nan","18637453545" };
	printf("%d %s %s %s\n", s.age, s.name, s.sex, s.tele);
	print(&s);
	return 0;
}